package com.service.impl;

import com.dao.ModDeo;
import com.dao.impl.ModDeoImpl;
import com.entity.composite.DeveloperInfo;
import com.entity.composite.ModDownloadInfo;
import com.entity.composite.ModInfo;
import com.entity.element_relation.Element;
import com.entity.short_reviews.ModShortReviews;
import com.entity.version_relation.Version;
import com.service.ModService;

import java.util.List;

/**
 * @author wang_
 * @version 2024.3.4.1
 * @description
 * @date 2025/7/14
 */
public class ModServiceImpl implements ModService {
	private final ModDeo deo = new ModDeoImpl();
	
	@Override
	public List<ModInfo> getSelectedMods() {
		return deo.getSelectedMods();
	}
	
	/// 获取模组的基本信息
	@Override
	public ModInfo getBasicInformation(int modId) {
		return deo.getBasicInformation(modId);
	}
	
	/// 获取模组开发者
	@Override
	public List<DeveloperInfo> getDeveloper(int modId) {
		return deo.getDeveloper(modId);
	}
	
	/// 获取模组元素
	@Override
	public List<Element> getElement(int modId) {
		return deo.getElement(modId);
	}
	
	/// 获取模组版本
	@Override
	public List<Version> getVersion(int modId) {
		return deo.getVersion(modId);
	}
	
	/// 获取模组短评
	@Override
	public List<ModShortReviews> getShortReviews(int modId) {
		return deo.getShortReviews(modId);
	}
	
	/// 获取模组下载
	@Override
	public List<ModDownloadInfo> getDownload(int modId) {
		return deo.getDownload(modId);
	}
}
